import { mapGetters } from 'vuex'
export default {
	computed: {
		...mapGetters('car', ['totalCount'])
	},
	onShow() {
		uni.setTabBarBadge({
			index: 2,
			text: this.totalCount + ""
		})
	},
	watch: {
		totalCount() {
			uni.setTabBarBadge({
				index: 2,
				text: this.totalCount + ""
			})
		}
	}
}